package com.example.ota_ble.ble.ota.ble

object OTA_BLE_PROCOL {
    var CMD_OTA_VERSION	        : Int = 0xFF00
    var CMD_OTA_START	        : Int = 0xFF01
    var CMD_OTA_END	            : Int = 0xFF02
    var CMD_OTA_START_EXT	    : Int = 0xFF03
    var CMD_OTA_FW_VERSION_REQ	: Int = 0xFF04
    var CMD_OTA_FW_VERSION_RSP  : Int = 0xFF05
    var CMD_OTA_RESULT	        : Int = 0xFF06
}
object  OTA_BLE_ERR{
        var OTA_SUCCESS	                :Int = 0x00
    	var OTA_DATA_PACKET_SEQ_ERR	    :Int = 0x01
    	var OTA_PACKET_INVALID	        :Int = 0x02
    	var OTA_DATA_CRC_ERR	        :Int = 0x03
    	var OTA_WRITE_FLASH_ERR         :Int = 0x04
    	var OTA_DATA_UNCOMPLETE	        :Int = 0x05
    	var OTA_FLOW_ERR	            :Int = 0x06
    	var OTA_FW_CHECK_ERR	        :Int = 0x07
    	var OTA_VERSION_COMPARE_ERR	    :Int = 0x08
    	var OTA_PDU_LEN_ERR	            :Int = 0x09
    	var OTA_FIRMWARE_MARK_ERR       :Int = 0x0a
    	var OTA_FW_SIZE_ERR	            :Int = 0x0b
    	var OTA_DATA_PACKET_TIMEOUT	    :Int = 0x0c
    	var OTA_TIMEOUT	                :Int = 0x0d
    	var OTA_FAIL_DUE_TO_CONNECTION  :Int = 0x0e
}